<md-dialog aria-label="Hashtag" class="hashtagselector-dialog">
    <div layout="column" class="hashtagselector">
        
        <div class="toolbar">
            <div>#hashtag</div>
        </div>

        <div class="header">
            <strong>#{{hashtag}}</strong>
        </div>

        <md-autocomplete
            md-no-cache
            md-selected-item="hashtag"
            md-search-text="hashtagText"
            md-items="item in search(hashtagText)"
            md-item-text="item.hashtag"
            placeholder="Hashtag">
            <span md-highlight-text="hashtagText">{{item.hashtag}}</span>
        </md-autocomplete>

    </div>
    <div class="md-actions" layout layout-padding>
        <span flex></span>
        <md-button ng-click="cancel()">Annuler</md-button>
        <md-button ng-click="answer('valider')" class="md-primary">Valider</md-button>
    </div>
</md-dialog>